﻿<cfscript>
/** 
* ORM ExamResitPlan
* 
* @hint "Hibernate persistenter t_resitplan. 教学任务补考安排计划" 
* 
*/ 


component 
	displayname="public.service.orm.senate.ExamResitPlan" 
	output=false 
	persistent=true 
	selectBeforeUpdate=true dynamicInsert=true dynamicUpdate=true 
	cacheuse="Transactional" 
	entityname="ExamResitPlan" 
	table="t_resitplan"
	{

	property type="string" name="TaskID" column="task_id" fieldtype="id" generator="assigned" hint="教学班号";

	property type="string" name="ExamResitIndex" column="rstidx" hint="补考序号";
	property type="string" name="CourseIndex" column="cidx" hint="课序号";
	property type="string" name="TaskType" column="task_type" hint="教学任务类别";
		
	property type="string" name="IsArrange" column="is_arrange" hint="是否排考";
	property type="numeric" name="StudentCount" column="stu_sum" hint="补考人数";

	property type="string" name="TaskProgress" column="task_prog" hint="成绩提交状态";
	property type="numeric" name="MarkDone" column="mark_done" hint="已提交成绩数";
	property type="numeric" name="MarkNeed" column="mark_need" hint="需提交成绩数";

	property name="Term" fieldtype="many-to-one" fkcolumn="term_id" cfc="Term"  hint="补考学期";
	property name="Course" fieldtype="many-to-one" fkcolumn="cid" cfc="Course"  hint="课程";
	
	property name="StudentMarkResitTemps" type="array" lazy="true" inverse="true" cascade="delete-orphan" fieldtype="one-to-many" fkcolumn="task_id" cfc="StudentMarkResitTemp" hint="补考成绩提交临时记录";

}
	
</cfscript>